import Vue from 'vue';
import app from './App.vue';

import {Header, Swipe, SwipeItem,Button} from 'mint-ui';
Vue.component(Header.name,Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

import VueRouter from 'vue-router';
Vue.use(VueRouter);

import VueResource from 'vue-resource';
Vue.use(VueResource);

import './lib/mui/css/mui.css';
import './lib/mui/css/icons-extra.css';

import router from './router';

Vue.http.options.root="http://www.liulongbin.top:3005/";

var vm = new Vue({
    el:'#app',
    render: c=>c(app),
    router
});
import moment from 'moment';
Vue.filter('dateFormat',function (dataStr,pattern="YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern);
});







